<%@page import="com.netistate.pojo.User"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="minWin">
   <form id="myForm" action="#" method="post">
	<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
		<tr>
			<td title="项 目 名 称" align="right">项目名称:
			</td>
			<td>
			    <input type="hidden" name="user.username" id="username"  value="${session_user.username }"/>
				<input  id="projectName" name="project.projectName"/>
				<span style="color:red">*</span>
			</td>
		</tr>
		
		<c:forEach var="pl" items="${sessionScope.projectList }">
			<input type="hidden" id="projectNameList" name="projectNameList" value="${pl.projectName }"/>
		</c:forEach>
		
		<tr>
			<td title="项目负责人" align="right">项目负责人:
			</td>
			<td>
				<select id="manager" name="manager">
					<c:forEach var="user" items="${sessionScope.userList }">					
				   		<option value="${user.username }">${user.realName}</option>
				   	</c:forEach>
				</select>
			</td>
		</tr>
		
		<tr>
			<td title="项目组成员" align="right">项目组成员:
			</td>
			<td>
				<% User u = (User)request.getSession().getAttribute("session_user");
				   List<User> userList = (List<User>)request.getSession().getAttribute("userList");
					for(User r : userList){ %>				
		   			<span style="display:inline;width:60px">
			   			<input type="checkbox" name="member" <%=r.getRealName().equals(u.getRealName()) ? "checked" : "" %> name="ourPeople" value="<%=r.getUsername() %>" /><%=r.getRealName() %>
			   		</span>
			   	<%} %>
			</td>
		</tr>
		
		<tr>
			<td title="项目阶段" align="right">项目阶段:
			</td>
			<td>
				<select id="process" name="process">
				   <option value="售前">售前</option>
				   <option value="已签单">已签单</option>
				   <option value="实施">实施</option>
				   <option value="已验收">已验收</option>
				   <option value="停滞">停滞</option>
				</select>
			</td>
		</tr>
		<tr>
			<td title="客户名称" align="right">客户名称:
			</td>
			<td>
				<input  id="clientName" name="project.clientName"/>
				<span style="color:red">*</span>
			</td>
		</tr>
		<tr>
			<td title="客户地址" align="right">客户地址:
			</td>
			<td style="width:100%">
				<input style="width:80%"  id="clientAddress" name="project.clientAddress"/>
			</td>
		</tr>
		<tr>
			<td title="项 目 描 述" align="right">项目描述:
			</td>
			<td>
				<textarea rows="13" cols="41" name="project.desc" id="desc"></textarea>
				<span style="color:red">*</span>
			</td>
		</tr>
	</table>
	</form>
	
	
	
</div>
